import 'dart:io';

import 'package:flutter/material.dart';
import 'package:base_router_helper/base_router_helper.dart';
import 'package:fluro/fluro.dart';
import 'package:main_page/main_page.dart';
import 'package:main_page/splash_page.dart';
import 'package:manager_page/management_router.dart';

void main() {
  runApp(Main());
}

class Main extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final FluroRouter router = FluroRouter();
    BaseRouterInit.initRouterInit([ManagementRouter()], router);
    MainModelHelper.initRouter(router);
    App.fluroRouter = router;
    return MaterialApp(
      theme: ThemeData(
          platform:TargetPlatform.iOS),
      home: SplashPage(),
      onGenerateRoute: App.fluroRouter.generator,
    );
  }
}

class App {
  static FluroRouter fluroRouter;
}
